package com.task.sql.schedule.constant;/**
 * @ClassName : ResultCode
 * @Description :
 * @Author : liudonghai
 * @Date: 2024-09-10 13:47
 */

/**
 * @ClassName : ResultCode
 * @Description :
 * @Author : liudonghai
 * @Date: 2024-09-10 13:47
 */
public enum ResultCode {
    //成功
    SUCCESS(0, "成功" ),
    PARAM_INVALID(1001, "参数无效" ),
    PARAM_BLANK(1002, "参数为空" ),
    PARAM_COMPLETE(1003, "参数缺失" ),
    PARAM_ERROR(1004, "参数错误" ),
    KHXX_HTJH_EXISTD(1005, "该类型的计划已存在" ),
    USER_LONGIN_ERROR(2001, "账号或密码错误" ),
    USER_LONGIN_EXIST(2002, "用户不存在" ),
    USER_LONGIN_EXISTD(2003, "用户已存在" ),
    USER_LONGIN_EXAMINE(2004, "用户待审核" ),
    USER_LONGIN_STOP(2005, "用户已停用" ),
    UPDATE_EXAMINE(2006, "修改申请已提交，等待管理员审核" ),
    KHXX_EXISTD(2010, "客户信息已存在！" ),

    FILE_NOTBLANK(2007, "上传文件不能为空" ),
    FILE_MAXSIZE(2008, "上传文件不能超过2M" ),
    FILE_ERRORSUFFIX(2009, "上传文件错误，只能上传文档或表格以及PDF格式" ),
    CUSTOMER_EXISTD(400, "客户信息已存在" ),
    SINE_ERROR(401, "用户信息已过期，请重新登录" ),
    PHONE_ERROR(402, "验证码或者手机号错误" ),
    USER_INSUFFICIENT_AUTHORITY(403, "权限不足" ),
    PHONE_EXIST(405, "手机号为空" ),
    PHONE_RETRY(405, "请2分钟后重试" ),
    PHONE_FPRMATEXIST(406, "手机号错误" ),
    LONG_OVERTIME(406, "登录超时，请重新登录" ),


    SYSTEM_ERROR(500, "请求失败" ),
    ERROR(501, "操作失败" ),
    SERVICE_INTERNAL_ERROR(5000, "服务内部错误" ),
    INVALID_PARAM(5501, "参数未通过@Valid验证异常" ),
    MISTYPE_PARAM(5502, "参数格式有误" ),
    MISSING_PARAM(5503, "缺少参数" ),
    UNSUPPORTED_METHOD(5504, "不支持的请求类型" ),
    INVALID_TOKEN(5505, "token不能为空" ),
    REPEAT_SUBMIT(701, "不允许重复提交，请稍后再试" ),
    ;

    private Integer code;

    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
